package com.lwq.imserver.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2022/3/15 8:37
 */
@Data
@Document(collection = "file")
public class File implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private String fileName;

    private String diskName;

    private String ext;

    /**
     * 1图片
     */
    private String type;

    private String url;

    private Date createDate;
}
